Page Index Toggle Pages: 1 2 [3]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Member Moods for 2.6.1 (Read 5984 times)
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Member Moods for 2.6.1
Reply #9 - Sep 6th, 2014 at 7:42pm
Print Post  
Reminds me of the song that was really icky when I was a lot younger...

Don't stop, never give up, hold your head high...
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Member Moods for 2.6.1
Reply #8 - Sep 6th, 2014 at 7:27pm
Print Post  
Gaining on it.   Grin
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Member Moods for 2.6.1
Reply #7 - Sep 6th, 2014 at 7:12pm
Print Post  
Dandello wrote on Sep 6th, 2014 at 7:05pm:
Well, a pure css solution does work in MSIE 10 and up. Haven't got the smiley img to overhang the top of the background block - yet. Roll Eyes


That shouldn't be hard... just use top padding on the background block and negative vertical offset on the smiley image...
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Member Moods for 2.6.1
Reply #6 - Sep 6th, 2014 at 7:05pm
Print Post  
Well, a pure css solution does work in MSIE 10 and up. Haven't got the smiley img to overhang the top of the background block - yet. Roll Eyes
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Member Moods for 2.6.1
Reply #5 - Sep 6th, 2014 at 6:47pm
Print Post  
Dandello wrote on Sep 6th, 2014 at 6:33pm:
This is the first one I got finished for testing. (The one with the word has 4 images - 3 as backgrounds in spans - but I'm wondering if a purely CSS solution for the background might work - in everything except MSIE.  Tongue )


That hurts... I have been IE beta tester since IE4...
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Member Moods for 2.6.1
Reply #4 - Sep 6th, 2014 at 6:33pm
Print Post  
My suspicion is that admins who already have this mod loaded or who want it aren't overly worried about load time.

This is the first one I got finished for testing. (The one with the word has 4 images - 3 as backgrounds in spans - but I'm wondering if a purely CSS solution for the background might work - in everything except MSIE.  Tongue )
  

screenshot-localhost_2014-09-06_11-21-13.png (Attachment deleted | 45 Downloads )
Amazed.png (Attachment deleted | 43 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Member Moods for 2.6.1
Reply #3 - Sep 6th, 2014 at 6:22pm
Print Post  
The byte size of the images won't be the problem... it's the delay that it takes to fetch the images from either memory cache, disk cache or to request the images from the site hosting the forum, and calculate the dimensions of the images.

More images the page has, longer time it takes to render the page, because it has to calculate dimensions of all images before it can fully render the page.
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Member Moods for 2.6.1
Reply #2 - Sep 6th, 2014 at 6:00pm
Print Post  
For the static display there would be 3 images for the css with the inserted text coming from Mood.lng. (And the images are small - something like 8KB combined.) Currently for the 'change mood' with the image change (which works like the message icon drop-down in Post) it calls for the associated image, but I don't think it's pre-loaded.

Going with just Mood Smileys, each image will be about 4KB and the associated word can show up in a title just like the current Smileys. (And since I'm still mulling over which way to go, I don't have samples.)

This is one of those mods where the people who like it really like it and everybody else seems to go 'Huh?'.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Member Moods for 2.6.1
Reply #1 - Sep 6th, 2014 at 4:49pm
Print Post  
The problem is how many images it has to render on single page load... More it has to, slower the page drawing gets...
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Member Moods for 2.6.1
Sep 6th, 2014 at 4:28pm
Print Post  
I'm working on it.

BUT it would be nice to turn the Language specific buttons into css styled ones. There are two ways to do this. (Or maybe three.  Roll Eyes )
  1. Have just the Smiley section show with the description in a title. The advantage for this is there would only be 200 or so images to worry about and the javascript for the user choice in Profile will work.
  2. Have a fully css button with the word showing (Just like the css buttons). The upside is it looks nice. Downside -I haven't figured out how to get the javascript to pull up the properly rendered image.  (This will use 600 tiny images)
  3. OR Have just the smiley show when choosing the mood and have the full css button show elsewhere.  (This will use 800 tiny images)


Edited:
And here it is - The words are pulled from Mood.lng which also created the javascript arrays tha allow the images to change when selected. The Admin can choose to show just the Mood smiley with a popup title or the whole formatted image with text.  The button gradients are css generated and the colors picked from the original gif buttons. The new images are .pngs. 

One minor issue - changing Mood from the Memberlist appears to cause a cache reload in FireFox which sometimes makes the Avatar images not load in a timely manner.

Edited:
The German and German Du Mood.lng files - both have one new phrase added which is still in English.


Sep 13th, 2014 at 7:12pm New files - this one has the new css file.
Sep 14th, 2014 at 8:04pm Correction in folder name.
Jan 1st, 2015 at 3:17pm New zip - added Template file, some bug fixes
Jan 21st, 2015 at 3:48pm New zip - bug fixes.


Member Moods for YaBB 2.6.11
Version: 0.2

Description
-----------
Allows Members to select their Mood

Installation
------------
1) Modify YaBB files using BoardMod or manually.
2) Upload modified files to your server in ASCII mode.
3) Upload Mood.lng to Languages/English/Mods
4) Upload ChangeMood.pm to Sources/Mods.
5) Upload Mood.template to Templates/default/Mods.
6) Upload the Mood images folder to the ModImages directory in Binary mode.
7) Upload mood.css to yabbfiles/Templates/Forum

Files to edit
-------------
Admin/ModList.pm
Admin/NewSettings.pm
Admin/Settings_Main.pm
Sources/Display.pm
Sources/Load.pm
Sources/MemberList.pm
Sources/MyCenter.pm
Sources/Profile.pm
Sources/Subs.pm
Sources/SubList.pm
Sources/System.pm
Templates/default/Display.template
Templates/default/MyCenter.template
Templates/default/MyProfile.template

Version History
---------------
1.0 - First release by Derek Barnstorm - 5th August 2008
1.1 - Made new images, aligned text and image better, added more moods and added preview image in User CP - 1st October 2008
1.2 - Updated for YaBB 2.3 - 14th October 2008
1.3 - Updated for YaBB 2.3.1 - 4th January 2009
1.4 - Updated for YaBB 2.4 and added ability to change mood by clicking on the image (Martin_W) - 4th May 2009
1.5 - Added to Member List and fixed issue with some users receiving Form Spoofing message - 6th July 2009
1.6 - Updated for YaBB 2.5 - 13th January 2011
1.7 - Updated for YaBB 2.6.0 by Dandello - 13 July, 2014
1.7a - fixed typos.
1.8 - Updated for YaBB 2.6.1 by Dandello - 6 Sept, 2014
2.1 - Updated for YaBB 2.6.1 by Dandello (new css file) 21 Oct, 2014
2.6.11 v0.1 - Updated for YaBB 2.6.1 Dec 31, 2014
0.2 - bug fixes - Jan 21, 2014
« Last Edit: Jan 21st, 2015 at 3:51pm by Dandello »  

MemberMoods_2611_b.zip (Attachment deleted | 45 Downloads )
Member_moods_German_files.zip (Attachment deleted | 36 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 
Send TopicPrint